#define _CRT_SECURE_NO_WARNINGS
#include "Slist.h"


int main()
{
	SLTNode* psltlist = NULL;
	SLTPushBack(&psltlist, 1);
	SLTPushBack(&psltlist, 2);
	SLTPushBack(&psltlist, 3);
	SLTPushBack(&psltlist, 4);
	SLTPrint(psltlist);
	printf("\n");

	SLTPushFront(&psltlist, 7);
	SLTPrint(psltlist);
	printf("\n");

	SLTPopFront(&psltlist);
	SLTPrint(psltlist);
	printf("\n");

	SLTPopBack(&psltlist);
	SLTPrint(psltlist);
	printf("\n");

	SLTPushBack(&psltlist, 4);
	SLTPushBack(&psltlist, 5);
	SLTNode* FindRet = SLTFind(psltlist,4);
	SLTInsertAfter(FindRet, 100);
	SLTPrint(psltlist);
	printf("\n");

	SLTInsertBefore(psltlist, FindRet, 101);
	SLTPrint(psltlist);
	printf("\n");

	SLTEraseAfter(FindRet);
	SLTPrint(psltlist);
	printf("\n");

	SLTErase(psltlist, FindRet);
	SLTPrint(psltlist);
	printf("\n");

	return 0;
}